import request from '@/utils/request'

// 查询占用托盘记录列表
export function listPalletRecord(query) {
  return request({
    url: '/order/palletRecord/list',
    method: 'get',
    params: query
  })
}

// 查询占用托盘记录详细
export function getPalletRecord(id) {
  return request({
    url: '/order/palletRecord/' + id,
    method: 'get'
  })
}

// 新增占用托盘记录
export function addPalletRecord(data) {
  return request({
    url: '/order/palletRecord',
    method: 'post',
    data: data
  })
}

// 修改占用托盘记录
export function updatePalletRecord(data) {
  return request({
    url: '/order/palletRecord',
    method: 'put',
    data: data
  })
}

// 删除占用托盘记录
export function delPalletRecord(id) {
  return request({
    url: '/order/palletRecord/' + id,
    method: 'delete'
  })
}
